package info.douyi.dps.model;

import java.util.ArrayList;
import java.util.List;

public class PestExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PestExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPidIsNull() {
            addCriterion("Pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("Pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(Integer value) {
            addCriterion("Pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(Integer value) {
            addCriterion("Pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(Integer value) {
            addCriterion("Pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("Pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThan(Integer value) {
            addCriterion("Pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(Integer value) {
            addCriterion("Pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidIn(List<Integer> values) {
            addCriterion("Pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<Integer> values) {
            addCriterion("Pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(Integer value1, Integer value2) {
            addCriterion("Pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(Integer value1, Integer value2) {
            addCriterion("Pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andNamezhcnIsNull() {
            addCriterion("NameZHCN is null");
            return (Criteria) this;
        }

        public Criteria andNamezhcnIsNotNull() {
            addCriterion("NameZHCN is not null");
            return (Criteria) this;
        }

        public Criteria andNamezhcnEqualTo(String value) {
            addCriterion("NameZHCN =", value, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnNotEqualTo(String value) {
            addCriterion("NameZHCN <>", value, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnGreaterThan(String value) {
            addCriterion("NameZHCN >", value, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnGreaterThanOrEqualTo(String value) {
            addCriterion("NameZHCN >=", value, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnLessThan(String value) {
            addCriterion("NameZHCN <", value, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnLessThanOrEqualTo(String value) {
            addCriterion("NameZHCN <=", value, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnLike(String value) {
            addCriterion("NameZHCN like", value, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnNotLike(String value) {
            addCriterion("NameZHCN not like", value, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnIn(List<String> values) {
            addCriterion("NameZHCN in", values, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnNotIn(List<String> values) {
            addCriterion("NameZHCN not in", values, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnBetween(String value1, String value2) {
            addCriterion("NameZHCN between", value1, value2, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNamezhcnNotBetween(String value1, String value2) {
            addCriterion("NameZHCN not between", value1, value2, "namezhcn");
            return (Criteria) this;
        }

        public Criteria andNameengIsNull() {
            addCriterion("NameEng is null");
            return (Criteria) this;
        }

        public Criteria andNameengIsNotNull() {
            addCriterion("NameEng is not null");
            return (Criteria) this;
        }

        public Criteria andNameengEqualTo(String value) {
            addCriterion("NameEng =", value, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengNotEqualTo(String value) {
            addCriterion("NameEng <>", value, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengGreaterThan(String value) {
            addCriterion("NameEng >", value, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengGreaterThanOrEqualTo(String value) {
            addCriterion("NameEng >=", value, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengLessThan(String value) {
            addCriterion("NameEng <", value, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengLessThanOrEqualTo(String value) {
            addCriterion("NameEng <=", value, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengLike(String value) {
            addCriterion("NameEng like", value, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengNotLike(String value) {
            addCriterion("NameEng not like", value, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengIn(List<String> values) {
            addCriterion("NameEng in", values, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengNotIn(List<String> values) {
            addCriterion("NameEng not in", values, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengBetween(String value1, String value2) {
            addCriterion("NameEng between", value1, value2, "nameeng");
            return (Criteria) this;
        }

        public Criteria andNameengNotBetween(String value1, String value2) {
            addCriterion("NameEng not between", value1, value2, "nameeng");
            return (Criteria) this;
        }

        public Criteria andSynonymsIsNull() {
            addCriterion("Synonyms is null");
            return (Criteria) this;
        }

        public Criteria andSynonymsIsNotNull() {
            addCriterion("Synonyms is not null");
            return (Criteria) this;
        }

        public Criteria andSynonymsEqualTo(String value) {
            addCriterion("Synonyms =", value, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsNotEqualTo(String value) {
            addCriterion("Synonyms <>", value, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsGreaterThan(String value) {
            addCriterion("Synonyms >", value, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsGreaterThanOrEqualTo(String value) {
            addCriterion("Synonyms >=", value, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsLessThan(String value) {
            addCriterion("Synonyms <", value, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsLessThanOrEqualTo(String value) {
            addCriterion("Synonyms <=", value, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsLike(String value) {
            addCriterion("Synonyms like", value, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsNotLike(String value) {
            addCriterion("Synonyms not like", value, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsIn(List<String> values) {
            addCriterion("Synonyms in", values, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsNotIn(List<String> values) {
            addCriterion("Synonyms not in", values, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsBetween(String value1, String value2) {
            addCriterion("Synonyms between", value1, value2, "synonyms");
            return (Criteria) this;
        }

        public Criteria andSynonymsNotBetween(String value1, String value2) {
            addCriterion("Synonyms not between", value1, value2, "synonyms");
            return (Criteria) this;
        }

        public Criteria andPtypeIsNull() {
            addCriterion("Ptype is null");
            return (Criteria) this;
        }

        public Criteria andPtypeIsNotNull() {
            addCriterion("Ptype is not null");
            return (Criteria) this;
        }

        public Criteria andPtypeEqualTo(Integer value) {
            addCriterion("Ptype =", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeNotEqualTo(Integer value) {
            addCriterion("Ptype <>", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeGreaterThan(Integer value) {
            addCriterion("Ptype >", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("Ptype >=", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeLessThan(Integer value) {
            addCriterion("Ptype <", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeLessThanOrEqualTo(Integer value) {
            addCriterion("Ptype <=", value, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeIn(List<Integer> values) {
            addCriterion("Ptype in", values, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeNotIn(List<Integer> values) {
            addCriterion("Ptype not in", values, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeBetween(Integer value1, Integer value2) {
            addCriterion("Ptype between", value1, value2, "ptype");
            return (Criteria) this;
        }

        public Criteria andPtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("Ptype not between", value1, value2, "ptype");
            return (Criteria) this;
        }

        public Criteria andOneimgIsNull() {
            addCriterion("Oneimg is null");
            return (Criteria) this;
        }

        public Criteria andOneimgIsNotNull() {
            addCriterion("Oneimg is not null");
            return (Criteria) this;
        }

        public Criteria andOneimgEqualTo(String value) {
            addCriterion("Oneimg =", value, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgNotEqualTo(String value) {
            addCriterion("Oneimg <>", value, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgGreaterThan(String value) {
            addCriterion("Oneimg >", value, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgGreaterThanOrEqualTo(String value) {
            addCriterion("Oneimg >=", value, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgLessThan(String value) {
            addCriterion("Oneimg <", value, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgLessThanOrEqualTo(String value) {
            addCriterion("Oneimg <=", value, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgLike(String value) {
            addCriterion("Oneimg like", value, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgNotLike(String value) {
            addCriterion("Oneimg not like", value, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgIn(List<String> values) {
            addCriterion("Oneimg in", values, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgNotIn(List<String> values) {
            addCriterion("Oneimg not in", values, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgBetween(String value1, String value2) {
            addCriterion("Oneimg between", value1, value2, "oneimg");
            return (Criteria) this;
        }

        public Criteria andOneimgNotBetween(String value1, String value2) {
            addCriterion("Oneimg not between", value1, value2, "oneimg");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}